package com.ziyun.pop.modules.production.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ziyun.pop.modules.production.entity.ErpOrderItemEntity;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.R;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * erp订单商品表
 *
 * @author guizhao
 * @email ...
 * @date 2018-08-22 14:44:58
 */
public interface ErpOrderItemService extends IService<ErpOrderItemEntity> {

    /**
     * 分页查询
     * @param params
     * @return
     */
    PageUtils queryPage(Map<String, Object> params);

    /**
     * 订单号查询
     * @param orderNo
     * @return
     */
    List<ErpOrderItemEntity> selectListByErpOrder(String orderNo);

    /**
     * 商品ID查询
     * @param itemId
     * @return
     */
    ErpOrderItemEntity selectByItemId(Integer itemId);

    /**
     * 参数查询
     * @param params
     * @return
     */
    R queryErpOrderItemList(Map<String, Object> params);

    /**
     * 数据更新
     * @param updateMap
     * @param eoItemId
     * @return
     */
    boolean updateByMap(Map<String, Object> updateMap, Integer eoItemId);

    /**
     * 批量更新
     * @param updateMap
     * @param eoItemIds
     * @return
     */
    boolean updateBatchByMap(Map<String, Object> updateMap, List<Integer> eoItemIds);

}

